import request from "@/utils/request";

/**
 * 申请
 * @param data
 * @returns {AxiosPromise}
 */
export function apply(data) {
  return request({
    url: '/api/xd/document_flow_print/apply',
    method: 'post',
    data
  })
}

/**
 * 审核
 * @param data
 * @returns {AxiosPromise}
 */
export function contentAudit(data) {
  return request({
    url: '/api/xd/document_flow_print/content_audit',
    method: 'post',
    data
  })
}

/**
 * 审批
 * @param data
 * @returns {AxiosPromise}
 */
export function approval(data) {
  return request({
    url: '/api/xd/document_flow_print/approval',
    method: 'post',
    data
  })
}

/**
 * 放行
 * @param data
 * @returns {AxiosPromise}
 */
export function release(data) {
  return request({
    url: '/api/xd/document_flow_print/release',
    method: 'post',
    data
  })
}


/**
 * 获取发行人员、部门
 * @param data
 * @returns {AxiosPromise}
 * data:{"code":"文件编号" }
 */
export function getSourceFlowUserAndGroup(data) {
  return request({
    url: '/api/xd/document_flow_print/get_source_flow_user_and_group',
    method: 'post',
    data
  })
}
